home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 7
/
Amiga Format AFCD07 (Dec 1996, Issue 91).iso
/
serious
/
shareware
/
comms
/
internet
/
html-related
/
hsc
/
source
/
makefile.dodl
< prev
next >
Wrap
Makefile
|
1996-09-29
|
6KB
|
167 lines
#
# Makefile for hsc ("html sucks completely")
#
# Copyright (C) 1994,95,96 Thomas Aglassinger
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#====================================================================
#
# This Makefile should work on most Unixoid systems, but no
# optimisation is performed. Feel free to fool around with the
# compiler-flags.
#
# (1) Use "make -f Makefile.dodl" to compile.
#
# (2) Copy "hsc/hsc" and "hscdepp/hscdepp" anywhere in your
# search-path.
#
# (3) Use "make -f Makefile.dodl sterile" for a total cleanup. Maybe
# you also have to pass an option to make to ignore the
# return-code of the "rm"-command; usually, this is "-i".
#
# (4) Read the docs, section "Installation" what to do with
# "hsc.prefs".
#
# IMPORTANT: Don't forget to hit the return-key after typing commands
# in the shell!
#
#------------------------------------------------
# this one should always work
#
CC = cc
CFLAGS =
#------------------------------------------------
# this one should also work and even optimise
#
#CC = cc
#CFLAGS = -s -O
#------------------------------------------------
# works with gcc
#
#CC = gcc
#CFLAGS = -s -O2
#--------------------------------------------------------------------
# avoid fooling around below this line
#--------------------------------------------------------------------
SYS = -DUNIX
COMP = $(CC) -o $@ $(SYS) -I. -c
LINK = $(CC) -o $@ $(SYS) -I.
MOVE = mv
DELETE = rm -f
#
# compile all tools
#
all : hsc/all_hsc hscdepp/all_hscd
# implict rule for object-files
# (old-style implicit rule)
.c.o :
$(COMP) $*.c $(CFLAGS)
hsc/all_hsc : hsclib/all_hscl.o hscprj/all_hscp.o hsc/all_hsc.o \
ugly/all_ugly.o
$(LINK) hsc/all_hsc.o hsclib/all_hscl.o hscprj/all_hscp.o \
ugly/all_ugly.o $(CMODE)
$(MOVE) hsc/all_hsc hsc/hsc
hscdepp/all_hscd : hscdepp/all_hscd.o hsclib/all_hscl.o hscprj/all_hscp.o \
ugly/all_ugly.o
$(LINK) hscdepp/all_hscd.o hsclib/all_hscl.o hscprj/all_hscp.o \
ugly/all_ugly.o $(CMODE)
$(MOVE) hscdepp/all_hscd hscdepp/hscdepp
#
# cleanup - remove all objects and executables
#
clean :
$(DELETE) hsc/*.o
$(DELETE) hscdepp/*.o
$(DELETE) hsclib/*.o
$(DELETE) hscprj/*.o
$(DELETE) ugly/*.o
all_clean :
$(DELETE) ugly/all_ugly.o
$(DELETE) hsclib/all_hscl.o
$(DELETE) hsc/all_hsc.o
$(DELETE) hsc/all_hsc
$(DELETE) hscdepp/all_hscd.o
$(DELETE) hscdepp/all_hscd
sterile : clean all_clean
$(DELETE) hsc/hsc
$(DELETE) hscdepp/hscdepp
#
# the dependencies below are created using `MkDepend' by Lars Düning,
# available from amient:dev/c/MkDepend.lha
#
# --- DO NOT MODIFY THIS LINE -- AUTO-DEPENDS FOLLOW ---
hsc/all_hsc.o : hsc/hsc.c hsc/callback.c hsc/output.c hsc/args.c \
hsc/status.c hsc/global.c hsc/hsc_rev.h hsc/status.h hsc/output.h \
hsc/callback.h hsc/args.h ugly/returncd.h ugly/prginfo.h ugly/uargs.h \
hscprj/project.h hsc/global.h ugly/fname.h ugly/infile.h ugly/utypes.h \
ugly/umemory.h ugly/utypes.h hsc/hdebug.h ugly/ustring.h ugly/umemory.h \
ugly/expstr.h ugly/dllist.h hsclib/hsclib.h ugly/expstr.h ugly/dllist.h \
ugly/udebug.h hsclib/linit.h hsclib/include.h hsclib/inc_base.h \
hsclib/lstatus.h hsclib/lmessage.h hsclib/hscprc.h hsclib/tag.h \
hsclib/entity.h hsclib/attrib.h hscprj/document.h hsclib/msgid.h \
hsclib/ldebug.h
hscdepp/all_hscd.o : hscdepp/hscdepp.c hscdepp/hscdepp_rev.h \
hscprj/project.h hscprj/document.h ugly/returncd.h ugly/prginfo.h \
ugly/uargs.h ugly/infile.h ugly/expstr.h ugly/dllist.h ugly/ustring.h \
ugly/umemory.h ugly/utypes.h hsclib/ldebug.h ugly/umemory.h \
ugly/utypes.h ugly/dllist.h ugly/expstr.h ugly/udebug.h
hsclib/all_hscl.o : hsclib/tag_macr.c hsclib/tag_if.c hsclib/tag_hsc.c \
hsclib/tag_a.c hsclib/tag_misc.c hsclib/size.c hsclib/linit.c \
hsclib/include.c hsclib/parse.c hsclib/deftag.c hsclib/defattr.c \
hsclib/posteval.c hsclib/eval.c hsclib/uri.c hsclib/skip.c \
hsclib/input.c hsclib/lstatus.c hsclib/hscprc.c hsclib/idref.c \
hsclib/attrib.c hsclib/tag.c hsclib/entity.c hsclib/lmessage.c \
ugly/ustring.h ugly/infile.h ugly/umemory.h ugly/expstr.h ugly/dllist.h \
ugly/utypes.h hsclib/msgid.h hsclib/ldebug.h hsclib/parse.h \
hsclib/include.h hsclib/deftag.h hsclib/defattr.h hsclib/inc_tagcb.h \
hsclib/skip.h hsclib/eval.h hsclib/tag_if.h hsclib/tag_macr.h \
hsclib/uri.h ugly/fname.h hscprj/document.h hsclib/inc_base.h \
hsclib/tag_misc.h hsclib/tag_hsc.h hsclib/tag_a.h hsclib/input.h \
hsclib/size.h hscprj/project.h hsclib/posteval.h hsclib/idref.h \
ugly/returncd.h hsclib/tag.h hsclib/entity.h ugly/utypes.h \
ugly/dllist.h ugly/expstr.h ugly/udebug.h hsclib/hscprc.h \
hsclib/lstatus.h hsclib/lmessage.h hsclib/attrib.h
hscprj/all_hscp.o : hscprj/writeprj.c hscprj/readprj.c hscprj/project.c \
hscprj/document.c hscprj/project.h hscprj/document.h ugly/ustring.h \
ugly/infile.h ugly/umemory.h ugly/expstr.h ugly/dllist.h ugly/utypes.h \
hscprj/pdefs.h hscprj/pdebug.h hsclib/ldebug.h ugly/utypes.h \
ugly/dllist.h ugly/expstr.h ugly/udebug.h
ugly/all_ugly.o : ugly/prginfo.c ugly/infile.c ugly/uargs.c ugly/dllist.c \
ugly/fname.c ugly/expstr.c ugly/ustring.c ugly/umemory.c ugly/udebug.h \
ugly/utypes.h ugly/umemory.h ugly/infile.h ugly/fname.h ugly/ustring.h \
ugly/expstr.h ugly/args_hlp.c ugly/args_prp.c ugly/args_set.c \
ugly/args_fre.c ugly/uargs.h ugly/dllist.h
# --- DO NOT MODIFY THIS LINE -- AUTO-DEPENDS PRECEDE ---